<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="header_admin.jsp"%>
<!-- 以上为页头 设置head 引用样式相关信息 请勿修改  请直接修改header.jsp文件  by 小灯笼 -->

<!-- 以下为正文 -->
<div class="container">
	<table
		class="table table-condensed table-striped table-bordered table-hover no-margin">
		<thead>
			<tr>
				<th>房间号</th>
				<th class="hidden-phone">容纳人数</th>
				<th class="hidden-phone">多媒体</th>
				<th class="hidden-phone">地址</th>
				<th class="hidden-phone">备注</th>
				<th class="hidden-phone">删除</th>
				<th class="hidden-phone">修改</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${myroom }" var="room">
				<form action="/mycms/admin/room_modify" method="post">
					<input type="hidden" name="id" id="id" value="${room.id }">
					<tr>
						<td>${room.BId }</td>
						<td class="hidden-phone">${room.BSize }</td>
						<td class="hidden-phone"><c:if test="${room.media == 1}">
                            	有
                            </c:if> <c:if test="${room.media == 0}">
                            	无
                            </c:if></td>
						<td class="hidden-phone">${room.BAddress }</td>
						<td class="hidden-phone">${room.remarks }</td>
						<td class="hidden-phone"><a class="btn btn-danger"
							href="/mycms/admin/room_delete?id=${room.id }">删除</a></td>
						<td class="hidden-phone"><button type="submit" name="submit"
								class="btn btn-info" value="modify">修改</button></td>
					</tr>
				</form>
			</c:forEach>
		</tbody>
	</table>
	<div class="form-actions no-margin">
		<a href="/mycms/admin/room_add" type="button"
			class="btn btn-primary pull-right">添加新会议室</a>
		<div class="clearfix"></div>
	</div>

	<table
		class="table table-condensed table-striped table-bordered table-hover no-margin">
		<thead>
			<tr>
				<th>学号</th>
				<th class="hidden-phone">姓名</th>
				<th class="hidden-phone">性别</th>
				<th class="hidden-phone">学院</th>
				<th class="hidden-phone">年级</th>
				<th class="hidden-phone">电话</th>
				<th class="hidden-phone">邮箱</th>
				<th class="hidden-phone">删除</th>
				<th class="hidden-phone">修改</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${mystudent }" var="stu">
				<form action="/mycms/admin/student_modify" method="post">
					<input type="hidden" name="id" id="id" value="${stu.id }">
					<tr>
						<td>${stu.userId }</td>
						<td class="hidden-phone">${stu.userName }</td>
						<td class="hidden-phone"><c:if test="${stu.gender == 1}">
                            	男
                            </c:if> <c:if test="${stu.gender == 0}">
                            	女
                            </c:if></td>
						<td class="hidden-phone">${stu.college }</td>
						<td class="hidden-phone">${stu.grade }</td>
						<td class="hidden-phone">${stu.tel }</td>
						<td class="hidden-phone">${stu.email }</td>
						<td class="hidden-phone"><a class="btn btn-danger"
							href="/mycms/admin/student_delete?id=${stu.id }">删除</a></td>
						<td class="hidden-phone"><button type="submit" name="submit"
								class="btn btn-info" value="modify">修改</button></td>
					</tr>
				</form>
			</c:forEach>
		</tbody>
	</table>
	<div class="form-actions no-margin">
		<a href="/mycms/admin/student_register" type="button"
			class="btn btn-primary pull-right">注册新学生</a>
		<div class="clearfix"></div>
	</div>

	<table
		class="table table-condensed table-striped table-bordered table-hover no-margin">
		<thead>
			<tr>
				<th style="width:20%">工号</th>
				<th class="hidden-phone">姓名</th>
				<th class="hidden-phone">性别</th>
				<th class="hidden-phone">学院</th>
				<th class="hidden-phone">电话</th>
				<th class="hidden-phone">邮箱</th>
				<th class="hidden-phone">删除</th>
				<th class="hidden-phone">修改</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${myteacher }" var="teacher">
				<form action="/mycms/admin/teacher_modify" method="post">
					<input type="hidden" name="id" id="id" value="${teacher.id }" />
					<tr>
						<td>${teacher.userId }</td>
						<td class="hidden-phone">${teacher.userName }</td>
						<td class="hidden-phone"><c:if test="${teacher.gender == 1}">
                            	男
                            </c:if> <c:if test="${teacher.gender == 0}">
                            	女
                            </c:if></td>
						<td class="hidden-phone">${teacher.college }</td>
						<td class="hidden-phone">${teacher.tel }</td>
						<td class="hidden-phone">${teacher.email }</td>
						<td class="hidden-phone"><a class="btn btn-danger"
							href="/mycms/admin/teacher_delete?id=${teacher.id }">删除</a></td>
						<td class="hidden-phone"><button type="submit" name="submit"
								class="btn btn-info" value="modify">修改</button></td>
					</tr>
				</form>
			</c:forEach>
		</tbody>
	</table>
	<div class="form-actions no-margin">
		<a href="/mycms/admin/student_register" type="button"
			class="btn btn-primary pull-right">注册新教师</a>
		<div class="clearfix"></div>
	</div>
</div>
<!-- 以上为正文 -->

<!-- 以下为页脚 及JS相关 请勿修改 请直接修改footer.jsp文件   by 小灯笼 -->
<jsp:include page="footer.jsp" />